pkgname=v4l2
v4lver=1.24.1
pkgrel=1
arch=('i386' 'x86_64')
url="https://gitee.com/ssri-mirrors/v4l-utils.git/"
license=('GPL')
makedepends_debian_11=(autoconf-archive autotools-dev debhelper dh-autoreconf doxygen gcc git graphviz libasound2-dev libjpeg-dev libqt5opengl5-dev libtool libudev-dev libx11-dev make pkg-config qt5-default qtbase5-dev udev)
source=("https://linuxtv.org/downloads/v4l-utils/v4l-utils-$v4lver.tar.bz2" "https://github.com/umlaeute/v4l2loopback.git")
md5sums=('SKIP' 'SKIP')

build() {
	cd "$srcdir"
	tar -jxvf v4l-utils-$v4lver.tar.bz2
	mv v4l-utils-$v4lver v4l-utils
	rm v4l-utils-$v4lver.tar.bz2
	cd v4l-utils
	./bootstrap.sh || return
	./configure --prefix="${pkgdir}/lkp/benchmarks/v4l2" || return
	make || return
	make install
}

package() {
	cp -af "$srcdir/v4l2loopback" "${pkgdir}/lkp/benchmarks"
}
